package com.nervenets.general.model;

import com.nervenets.general.enumeration.Platform;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;
import java.util.List;

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@ToString
public class SysLogInfo implements Serializable {
    @ApiModelProperty(value = "IP")
    private long ip;
    @ApiModelProperty(value = "UserAgent")
    private String userAgent;
    @ApiModelProperty(value = "平台")
    private Platform userPlatform;
    @ApiModelProperty(value = "类名")
    private String className;
    @ApiModelProperty(value = "方法名")
    private String classMethod;
    @ApiModelProperty(value = "功能名")
    private String classMethodFunc;
    @ApiModelProperty(value = "接口名称")
    private String apiName;
    @ApiModelProperty(value = "功能标签")
    private List<String> apiTags;
    @ApiModelProperty(value = "时间")
    private long createTime;
    @ApiModelProperty(value = "用户")
    private SecurityUser user;
    @ApiModelProperty(value = "开始时间")
    private long startTime;
    @ApiModelProperty(value = "结束时间")
    private long endTime;
    @ApiModelProperty(value = "参数")
    private String params;
    @ApiModelProperty(value = "结果")
    private String result;
    @ApiModelProperty(value = "日志描述")
    private String logValue;
    @ApiModelProperty(value = "日志Key")
    private String logKey;
    @ApiModelProperty(value = "日志标签")
    private List<String> logTags;
}
